# 定义一个师父类
class Master():
    def __init__(self):
        self.kongfu = "古法煎饼果子技术"

    def cook(self):
        print(f"使用{self.kongfu}来制作煎饼果子")

# 定义一个徒弟类
class Prentice(Master):
    pass

# 定义一个儿子类
class Son(Prentice):
    pass

# 继承的传递性：按照查找顺序去找 --多继承

# xiaoming = Prentice()
# print(xiaoming.kongfu)
# xiaoming.cook()

xiaoxiaoming = Son()
print(xiaoxiaoming.kongfu)
xiaoxiaoming.cook()